package afcp.alumni.model;

import java.nio.charset.Charset;

import afcp.alumni.util.Charsets;
import afcp.alumni.util.Conf;

/**
 * Instead, you should use {@link Conf#DEFAULT_CHARSET} for the charset used in the project sources,
 * or {@link Charsets#UTF8} and {@link Charsets#UTF8_NAME} for
 * {@link Charset} object and charset name. The latest one uses {@link Charset#name()} property.
 * 
 * @author architruc
 * 
 */
@Deprecated
public class Encoding {
	private String name;
	private Charset charset;
	
	public Encoding() {
	}
	public Encoding(String name) {
		this.name = name;
		this.charset = Charset.forName(name);
	}
	public Encoding(String name, Charset charset) {
		this.name = name;
		this.charset = charset;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Charset getCharset() {
		return charset;
	}
	public void setCharset(Charset charset) {
		this.charset = charset;
	}
}
